package chapter02;

import java.util.Scanner;

/**
 * Created by a on 2017/6/8.
 */
public class Test023 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个英文字符或解密字符串:");
        String password = scanner.nextLine();
        char[] arrat = password.toCharArray();
        for (int i = 0 ;i < arrat.length;i++){
            arrat[i] = (char) (arrat[i]^20000);
        }
        System.out.println("加密或解密结果如下:");
        System.err.println(new String(arrat));
    }
}
